<?php

namespace Admin\Form;

use Zend\Form\Form;

class AdminForm extends Form
{
    public function __construct($name = null, $options = array())
    {
        parent::__construct('admin');
        $this->add(array(
            'name' => 'username',
            'type' => 'Text',
            'options' => array(
                'label' => '用户名'
            ),
            'attributes' => array(
                'disabled' => true
            )
        ));
        $this->add(array(
            'name' => 'login_time',
            'type' => 'Text',
            'options' => array(
                'label' => '登录时间'
            ),
            'attributes' => array(
                'disabled' => true
            )
        ));
        $this->add(array(
            'name' => 'new_password',
            'type' => 'Password',
            'options' => array(
                'label' => '新密码'
            )
        ));
        $this->add(array(
            'name' => 'confirm_password',
            'type' => 'Password',
            'options' => array(
                'label' => '确认密码'
            )
        ));
        $this->add(array(
            'name' => 'submit',
            'type' => 'Submit',
            'options' => array(
                'value' => 'Go',
                'id' => 'submitbutton'
            )
        ));
    }
}